<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <title>{$msg} - 页面跳转中...</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <link rel="stylesheet" href="__PUBLIC__/common/css/pintuer.css">
    <link rel="stylesheet" href="<?php echo ROOT_URL.THEME_NAME.'/'.TPL_NAME ?>/style.css">
    <script src="__PUBLIC__/js/jquery.js"></script>
    <script src="__PUBLIC__/common/js/pintuer.js"></script>
    <script src="__PUBLIC__/common/js/respond.js"></script>
</head>
<body>
    <div class="container">
    <br>
        <br>
    <div class="keypoint bg">
      <h1>页面跳转中...</h1>
      <p>{$msg}，<span id="time">3</span>秒后将会为您跳转，请稍候...</p>
      <p>
          <!--if{$url}-->
          <a href="{$url}" class="button bg-main">
          <!--{else}-->
          <a href="javascript:history.go(-1);" class="button bg-main">
          <!--{/if}-->
              立即转到</a> <a href="__ROOT__/" class="button bg-main">返回首页</a></p>
    </div>
</div>
    </body>

<script>
    var i = 4;
    function jump(url){
        if (i>0){
            i--;
        }else{
            if(url !== ""){
                window.location.href=url;
            }else{
                history.go(-1);
            }
        }
        $('#time').html(i);
    }
    setInterval('jump("{$url}")', 1000);
</script>
</html>